﻿using IdentityServer4.Models;
using System.Collections.Generic;

namespace YXY.Identity
{
    public class OAuthConfig
    {

        /// <summary>
        /// 过期秒数
        /// </summary>
        public const int ExpireIn = 120;
        /// <summary>
        /// 用户Api相关
        /// </summary>
        public static class UserApi
        {
            public static string ApiName = "user_api";
            public static string ClientId = "user_clientid";
            public static string Secret = "user_secret";

            public static string ClientPasswordId = "user_clientid_pwd";
            public static string ClientPasswordSecret = "YXY.Identity.Secre";
        }
        public static IEnumerable<ApiScope> ApiScopes =>
        new ApiScope[]
        {
            new ApiScope(UserApi.ApiName)
        };


    }
}
